package array2;

import java.lang.reflect.Array;
import java.util.Arrays;

public class Test01 {
    public static void main(String[] args){
        //静态初始化
        int [][] a={
                {1,2},
                {2,3},
                {5,6}
        };

        int[][] b = new int[3][];
        b[0] = new int[2];
        b[1] = new int[4];
        b[2] = new int[3];
        b[0][0]=1;
        b[0][0]=2;
        b[1][0]=3;
        b[1][1]=8;

        //矩阵
        int[][] m={
                {1,2},
                {2,4}
        };
        int[][] p={
                {1,2},
                {2,4}
        };

        int[][] n = new int[2][2];

        for (int i=0;i<m.length;i++){
            for (int k=0;k<m.length;k++){
                n[i][k] = m[i][k]+p[i][k];
            }
        }


        System.out.println(n[0][0]);
    }

}
